package samplepluginproject.model;

public class Student
{
    private final int id;
    private String name;
    private int score1;
    private int score2;
    private int score3;


    Student( int id )
    {
        this.id = id;
    }


    public String getName()
    {
        return name;
    }


    public void setName( String name )
    {
        this.name = name;
    }


    public int getScore1()
    {
        return score1;
    }


    public void setScore1( int score1 )
    {
        this.score1 = score1;
    }


    public int getScore2()
    {
        return score2;
    }


    public void setScore2( int score2 )
    {
        this.score2 = score2;
    }


    public int getScore3()
    {
        return score3;
    }


    public void setScore3( int score3 )
    {
        this.score3 = score3;
    }


    public int getId()
    {
        return id;
    }


    public int getSum()
    {
        return score1 + score2 + score3;
    }


    public int getAverage()
    {
        return getSum() / 3;
    }

}
